[QUOTE=Trakan;54623]
How to create a shop with string ??
my event coin :
if (created) {
setimg bigheart.png;
message Special Point;
}
if (playertouchsme) {
this.o=strtofloat(#s(client.eventcoins));
setstring client.eventcoins,#v(this.o+1);
setplayerprop #c,+1 SpecialPoint :);
destroy;
}
[/QUOTE]
if (created) {
setimg bigheart.png;
message Special Point;
}
if (playertouchsme) {
setstring client.eventcoins,#v(strtofloat(#s(client.eventcoins))+1);
setplayerprop #c,+1 SpecialPoint :);
destroy;
}
^^^ slightly more corrector
Merged doublepost_______________
Also to make it into a basic shop:
if (created || playerenters) {
setimg bigheart.png;
message Special Point Price:2 eventcoins leftclick to buy!;
}
if (leftmousebutton) {
if (strtofloat(#s(client.eventcoins))>=2){
setstring client.eventcoins,#v(strtofloat(#s(client.eventcoins))-1);
setplayerprop #c,+1 SpecialPoint :);
}
else say2 Not enough coins, go home!;
}
Im not sure what you wanted done but there is a basic shop example