28.03.2011, 11:42
errors line
errors
Fast reply
pawn Код:
public OnPlayerText(playerid, text[])
{
if( gTeam[playerid] == TEAM_JAPAN )
{
GetPlayerName(playerid,nameee,sizeof(nameee)); format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
printf("Global Chat: %s: %s", nameee, cmdtext[3]);
}
if( gTeam[playerid] == TEAM_RUSSIA )
{
GetPlayerName(playerid,nameee,sizeof(nameee)); format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
printf("Global Chat: %s: %s", nameee, cmdtext[3]);
}
if( gTeam[playerid] == TEAM_MERC )
{
GetPlayerName(playerid,nameee,sizeof(nameee)); format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
printf("Global Chat: %s: %s", nameee, cmdtext[3]);
}
if( gTeam[playerid] == TEAM_USA )
{
GetPlayerName(playerid,nameee,sizeof(nameee)); format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
printf("Global Chat: %s: %s", nameee, cmdtext[3]);
}
if( gTeam[playerid] == TEAM_GERMANY )
{
GetPlayerName(playerid,nameee,sizeof(nameee)); format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
printf("Global Chat: %s: %s", nameee, cmdtext[3]);
}
return 1;
}
Код:
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 017: undefined symbol "string" C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 017: undefined symbol "string" C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : warning 215: expression has no effect C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 001: expected token: ";", but found "]" C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.