Help Fixing this error
#1

My gamemode all goes wrong here.

Код:
 //CMDS
COMMAND:GODON(playerid, params[5])
{
SetPlayerHealth(playerid, "999999"
}
Error

Код:
C:\Users\Zin\Desktop\ProjectZin\gamemodes\Cheatz.pwn(45 -- 46) : error 035: argument type mismatch (argument 2)
Reply
#2

pawn Код:
COMMAND:GODON(playerid, params[5])
{
SetPlayerHealth(playerid, 99999);
}
Reply
#3

Don't use any size for the params and return a value as ZCMD should return something. Use for the command's name lowercase and not capital.

pawn Код:
COMMAND:godon(playerid, params[])
{
    SetPlayerHealth(playerid, 999999);
    return 1;
}
Reply
#4

try this :
PHP код:
COMMAND:GODON(playeridparams[5])
{
        
SetPlayerHealth(playerid"999999");
        return 
1;

Reply
#5

Make it like this:
pawn Код:
COMMAND:GODON(playerid, params[])
{
       SetPlayerHealth(playerid, 99999);
       return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)