HELP: 4 errors.
#1

C:\Users\owner\Desktop\sa-mp tester server\gamemodes\G2x_andreas.pwn(1465) : error 017: undefined symbol "string"
C:\Users\owner\Desktop\sa-mp tester server\gamemodes\G2x_andreas.pwn(1465) : error 017: undefined symbol "string"
C:\Users\owner\Desktop\sa-mp tester server\gamemodes\G2x_andreas.pwn(1465) : error 029: invalid expression, assumed zero
C:\Users\owner\Desktop\sa-mp tester server\gamemodes\G2x_andreas.pwn(1465) : fatal error 107: too many error messages on one line

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


4 Errors.

i get these errors with this code:

public OnPlayerUpdate(playerid)
{
new pName[MAX_PLAYER_NAME];
new w = 0;
while(w < (sizeof(ForbiddenWeapons))){
if(GetPlayerWeapon(playerid) == w){
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "* %s has been kicked: WEAPON CHEAT", pName);
SendClientMessageToAll(0xAA3333AA, string);
Kick(playerid);
}

new pName[MAX_PLAYER_NAME], string[128];
if(GetPlayerMoney(playerid) > pMoney[playerid])
{
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "* %s has been banned: MONEY CHEAT", pName);
SendClientMessageToAll(0xAA3333AA, string);
Kick(playerid);
}
return 1;
}
Reply


Messages In This Thread
HELP: 4 errors. - by BigAl - 07.11.2010, 00:14
Re: HELP: 4 errors. - by WillyP - 07.11.2010, 00:15
Re: HELP: 4 errors. - by BigAl - 07.11.2010, 00:21
Re: HELP: 4 errors. - by WillyP - 07.11.2010, 00:23
Re: HELP: 4 errors. - by mmrk - 07.11.2010, 00:24
Re: HELP: 4 errors. - by BigAl - 07.11.2010, 00:26
Re: HELP: 4 errors. - by BigAl - 07.11.2010, 00:49
Re: HELP: 4 errors. - by -Rebel Son- - 07.11.2010, 01:59

Forum Jump:


Users browsing this thread: 1 Guest(s)