[NL]PlayerID warning. Help me.
#1

-----------------------------------------
ENGLISH
-----------------------------------------
l have greated a /pmspecoff and /pmspec script,
but there are 2 warnings, i dont know how i this must remedy.
i need help

if(strcmp(cmd, "/pmspec", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, 3); <=== there is the warning
SendClientMessage(playerid, COLOR_DBLUE, "Now watching all PM's in the Server.");
return 1;
}
if(strcmp(cmd, "/pmspecoff", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, 3); <=== there is the warning
PlayerInfo[playerid][pAdmin] = 0;
SendClientMessage(playerid, COLOR_DBLUE, "PM Spec Canceled.");
return 1;
}
is the script.
and this is the
Error:
penls.pwn(15721) : warning 202: number of arguments does not match definition
penls.pwn(15727) : warning 202: number of arguments does not match definition

-----------------------------------------
NETHERLANDS
-----------------------------------------
kheb een /pmspeccoff en /pmspec script gemaakt,
Maar er zijn 2 warnings, kweet niet hoe k het moet verhelpe.
Hulp nodig..

if(strcmp(cmd, "/pmspec", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, 3); <== daar is de waarschuwing
SendClientMessage(playerid, COLOR_DBLUE, "Now watching all PM's in the Server.");
return 1;
}
if(strcmp(cmd, "/pmspecoff", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, 3); <=== daar is de waarschuwing
PlayerInfo[playerid][pAdmin] = 0;
SendClientMessage(playerid, COLOR_DBLUE, "PM Spec Canceled.");
return 1;
}
dit is het script, en dit is de
Error:

penls.pwn(15721) : warning 202: number of arguments does not match definition
penls.pwn(15727) : warning 202: number of arguments does not match definition

-----------------------------------------
Reply
#2

Please show the lines 15721-12727
Reply
#3

SendClientMessage needs a color argument.

SendClientMessage(playerid,COLOR,"text");
Reply
#4

still.. where the hell do you get that '3' from?
Reply
#5

Quote:
Originally Posted by [NT
Mamoru ]
still.. where the hell do you get that '3' from?
that have place me friend there, he's did it with Teamviewer, but i dont know what i must do now.

SendClientMessage(Playerid,COLOR_DBLUE 3) does not work

then comes 4 errors
Reply
#6

Код:
return SendClientMessage(playerid,COLOR_DBLUE, "3");
Notice the " and ". You gotto add them.
Reply
#7

Quote:
Originally Posted by harly
Код:
return SendClientMessage(playerid,COLOR_DBLUE, "3");
Notice the " and ". You gotto add them.
that is the worst message ever recieved I think
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)