Help me fix these errors
#1

So my friend was scripting a Cops and Robbers GM and he went in troubles and cant fix following errors:

C:\Users\Jovan\Desktop\DOK\gamemodes\DOK.pwn(2825) : error 029: invalid expression, assumed zero
C:\Users\Jovan\Desktop\DOK\gamemodes\DOK.pwn(2825) : error 029: invalid expression, assumed zero
C:\Users\Jovan\Desktop\DOK\gamemodes\DOK.pwn(2825) : error 017: undefined symbol "PlayerName"
C:\Users\Jovan\Desktop\DOK\gamemodes\DOK.pwn(2825) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

these are the lines:

2835tock GetPlayerID(const PlayerName[])
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(i, PlayerName, sizeof(pName));
if(strcmp(Name, PlayerName, true)==0)
{
return i;
}
}
}
return -1;
}
Reply


Messages In This Thread
Help me fix these errors - by TheK0kY - 13.08.2014, 13:05

Forum Jump:


Users browsing this thread: 2 Guest(s)