SA-MP Forums Archive
Where is the problem ?!!! (/handsup) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Where is the problem ?!!! (/handsup) (/showthread.php?tid=280768)



Where is the problem ?!!! (/handsup) - greekg@ng$st3r - 02.09.2011

}
if (strcmp("/HandsUp1", cmdtext, true, 10) == 0)
{
ApplyAnimation(playerid,"ROB_BANK","SHP_HandsUp_Sc r",4.1,1,1,1,1,0);
return 1;
}

thats the code...

the problem is
(140)error 010: invalid function or declaration (if (strcmp("/HandsUp1", cmdtext, true, 10) == 0) line 140)
(143)error 010: invalid function or declaration (return 1; line 143)

please help...


Re: Where is the problem ?!!! (/handsup) - Backwardsman97 - 02.09.2011

You didn't leave that closing bracket above it there did you?
pawn Код:
if (!strcmp(cmdtext,"/handsup1",true))
{
     ApplyAnimation(playerid,"ROB_BANK","SHP_HandsUp_Sc r",4.1,1,1,1,1,0);
     return 1;
}



Re: Where is the problem ?!!! (/handsup) - linuxthefish - 02.09.2011

i'm stupid


Re: Where is the problem ?!!! (/handsup) - =WoR=G4M3Ov3r - 02.09.2011

PHP код:
if(strcmp(cmd"/handsup"true) == 0)
    {
        
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
        return 
1;
    } 
Use this.


Re: Where is the problem ?!!! (/handsup) - greekg@ng$st3r - 02.09.2011

same thing to the codes that you posted guyz...


Re: Where is the problem ?!!! (/handsup) - Kingunit - 02.09.2011

Quote:
Originally Posted by greekg@ng$st3r
Посмотреть сообщение
same thing to the codes that you posted guyz...
Be happy that you are having your solution.


Re: Where is the problem ?!!! (/handsup) - greekg@ng$st3r - 03.09.2011

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
Be happy that you are having your solution.
huh?