1 Error
#1

when I add this
pawn Код:
if(strcmp(cmdtext, "/kill", true) == 0)
        SetPlayerHealth(playerid,0.0);
I get this error
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc.pwn(1031) : error 010: invalid function or declaration
Reply
#2

You don't have it returning the command.
'return 1;'
Reply
#3

Quote:
Originally Posted by Akira297
Посмотреть сообщение
You don't have it returning the command.
'return 1;'
that didnt work
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc.pwn(1031) : error 010: invalid function or declaration
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc.pwn(1033) : error 010: invalid function or declaration
Reply
#4

pawn Код:
if(strcmp(cmdtext, "/kill", true) == 0) {
        SetPlayerHealth(playerid,0.0);
        return 1;
}
Reply
#5

You forgot a ) at the end of the strcmp line. Also, change the SetPlayerHealth line to return SetPlayerHealth(.......).
Reply
#6

<Removed>
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)