09.04.2012, 13:12
Herro people.
I had an idea which i actully liked, and tried to script it, but eventually it leaded to a failure (:
-
So What I'm trying to do is command "expand"
if you got 1000$, you can expand.
Here's my script
warning: I know, im not that scripter, i didn't copy anything, i just tried my luck, and i got 3 errors, so please don't reply with "what the **** is this? Its not even a code!" D:
Haha, i tried to make it all my own, but i failed
Here's the errors
and please, i want a fix with strcmp (inb4 dcmd or other stuff)
So thanks!
Again, don't complain about nonsense tried my best
I had an idea which i actully liked, and tried to script it, but eventually it leaded to a failure (:
-
So What I'm trying to do is command "expand"
if you got 1000$, you can expand.
Here's my script
warning: I know, im not that scripter, i didn't copy anything, i just tried my luck, and i got 3 errors, so please don't reply with "what the **** is this? Its not even a code!" D:
pawn Код:
if (strcmp("/buyboundries1", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 1000); // here 244
{
SendClientMessage(playerid, 0xFF00000AA,"You don't have enough money");
}
else // here 248
{
if(GetPlayerMoney(playerid) >= 1000); // here 250
{
SendClientMessage(playerid, 0xFFFF00AA,"Congratulations, you've unlocked a new world boundries!");
SetPlayerWorldBounds(playerid, 10000, 10000, 20000, 20000);
}
}
return 1;
}
Here's the errors
Код:
C:\Users\User\Desktop\Scripting\gamemodes\wassim.pwn(244) : error 036: empty statement C:\Users\User\Desktop\Scripting\gamemodes\wassim.pwn(248) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\Scripting\gamemodes\wassim.pwn(250) : error 036: empty statement
So thanks!
Again, don't complain about nonsense tried my best