02.01.2012, 15:32
Hello,
I made this code it seems to have no problem, but when i compile it.
These Errors Pop up.
Any kind of help will be appreciated!
Код:
if(strcmp(cmdtext,"/god",true)==0) { if(pAdmin[playerid] == 1) { if(God[playerid] == 0) { God[playerid] = 1; SendClientMessage(playerid,COLOR_GREEN,"God Mode On"); GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"%s is a God",name); SendClientMessageToAll(COLOR_BLUE,string); } else { God[playerid] = 0; SendClientMessage(playerid,COLOR_RED,"God Mode Off"); SetPlayerHealth(playerid, 100); GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"%s is a God no more",name); SendClientMessageToAll(COLOR_BLUE,string); } } else { SendClientMessage(playerid,COLOR_RED,"You Are Not An Admin!); } return 1; }
Quote:
D:\Game Softs\0.3D\gamemodes\LDriftGM.pwn(2322) : error 017: undefined symbol "string" D:\Game Softs\0.3D\gamemodes\LDriftGM.pwn(2322) : error 017: undefined symbol "string" D:\Game Softs\0.3D\gamemodes\LDriftGM.pwn(2322) : error 029: invalid expression, assumed zero D:\Game Softs\0.3D\gamemodes\LDriftGM.pwn(2322) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
Any kind of help will be appreciated!