25.08.2011, 20:20
What's wrong? Please, help:
new vardas[128], komanda[128], stringas[128];
GetPlayerName(playerid, vardas, sizeof(vardas));
GetPlayerTeam(playerid, komanda, sizeof(komanda));
if(GetPlayerTeam == 1) komanda = "Green";
if(GetPlayerTeam == 2) komanda = "Blue";
format(stringas, sizeof(stringas), "From %s Team %s says I need help!", komanda, vardas);
SendClientMessageToAll(0xE6E6FAFF, stringas);
return 1;
}
The error:
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(522) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(522) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(523) : error 076: syntax error in the expression, or invalid function call
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(524) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
new vardas[128], komanda[128], stringas[128];
GetPlayerName(playerid, vardas, sizeof(vardas));
GetPlayerTeam(playerid, komanda, sizeof(komanda));
if(GetPlayerTeam == 1) komanda = "Green";
if(GetPlayerTeam == 2) komanda = "Blue";
format(stringas, sizeof(stringas), "From %s Team %s says I need help!", komanda, vardas);
SendClientMessageToAll(0xE6E6FAFF, stringas);
return 1;
}
The error:
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(522) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(522) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(523) : error 076: syntax error in the expression, or invalid function call
D:\GTA SA\USA vs MEC\gamemodes\map4.pwn(524) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.