help error - 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: help error (
/showthread.php?tid=369547)
help error -
Taleski - 17.08.2012
how can i fix this error?
Код:
C:\Documents and Settings\Filip i Frose\Desktop\MWRPG\gamemodes\MACEDONIANWORLD.pwn(73608) : error 035: argument type mismatch (argument 1)
Код:
stock GetPlayerID(const Name[])
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(i, pName, sizeof(pName));
if(strcmp(Name, pName, true)) >> THIS LINE
{
return i;
}
}
}
return -1;
}
Re: help error -
Taleski - 17.08.2012
stock GetPlayerID(const Name[])
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(i, pName, sizeof(pName));
if(strcmp(Name, pName, true)) >> THIS LINE
{
return i;
}
}
}
return -1;
}