help with team
#8

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.
Reply


Messages In This Thread
help with team - by Setkus - 25.08.2011, 15:49
Re: help with team - by Setkus - 25.08.2011, 16:07
Re: help with team - by knackworst - 25.08.2011, 16:09
Re: help with team - by Dragony92 - 25.08.2011, 16:12
Re: help with team - by Setkus - 25.08.2011, 16:22
Re: help with team - by Setkus - 25.08.2011, 16:48
Re: help with team - by iggy1 - 25.08.2011, 17:00
Re: help with team - by Setkus - 25.08.2011, 20:20
Re: help with team - by knackworst - 25.08.2011, 20:46
Re: help with team - by iggy1 - 25.08.2011, 22:07

Forum Jump:


Users browsing this thread: 2 Guest(s)