How should i fix this?
#1

this is the code:
Quote:

{
if(strcmp(cmd, "/handsup", true) == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP);
return 1;
}

plz tell me how should i fix that and under what category should i put that?i just put that at end of the GM.i tried on lvdm GM that come with SA-MP server sameple scripts.plz fix my errors.

i get these error when i tried to make an animation:
Quote:

C:\Users\Jot\Desktop\SAMP Server\gamemodes\lvdm.pwn(928 ) : error 055: start of function body without function header
C:\Users\Jot\Desktop\SAMP Server\gamemodes\lvdm.pwn(929) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\lvdm.pwn(932) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply
#2

Код:
if(strcmp(cmd, "/handsup", true) == 0)
{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    return 1;
}
Reply
#3

Quote:
Originally Posted by [RSS]Cops_sandu
Посмотреть сообщение
Код:
if(strcmp(cmd, "/handsup", true) == 0)
{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    return 1;
}
now it's this probelm
Quote:

C:\Users\Jot\Desktop\SAMP Server\gamemodes\lvdm.pwn(929) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\lvdm.pwn(932) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

is there any place that i just have to place under that, nowhere else.
Reply
#4

also do i need any kind of include?
Reply
#5

where you puting this command?
Reply
#6

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/handsup", true) == 0)
    {
       SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
       return 1;
}
Reply
#7

Quote:
Originally Posted by Raimis_R
Посмотреть сообщение
where you puting this command?
all the way at end of the GM
Reply
#8

So this its your problem put this command in OnPlayerCommandText callback
Reply
#9

Quote:
Originally Posted by [RSS]Cops_sandu
Посмотреть сообщение
i knw i just copied and paste that to add actions to that GM.
Reply
#10

Quote:
Originally Posted by jot16
Посмотреть сообщение
i knw i just copied and paste that to add actions to that GM.
I edited:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/handsup", true) == 0)
    {
       SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
       return 1;
     }
}
becouse you are command the command put in public OnPlayerCommandText(playerid, cmdtext[])
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)