26.08.2011, 12:56
Hey guys,
I have one error, and i dont know how to fix it...
Heres the code:
if (!strcmp("/t", cmdtext, true,2))
{
if(!cmdtext[3])
return
SendClientMessage(playerid,0xFFFFFFFF,"Kalbeti per racija savo komandai: /t [tekstas]");
new msg[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(msg,sizeof(msg),"[USA] %s: %s",pname,cmdtext[3]);
SendClientMessageToAll(TEAM_GREEN,0xFFFFFFFF,msg);
return 1;
}
heres the error:
D:\GTA SA\Usa vs. Mec\gamemodes\map3.pwn(1131) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Please, help... Thanks
I have one error, and i dont know how to fix it...
Heres the code:
if (!strcmp("/t", cmdtext, true,2))
{
if(!cmdtext[3])
return
SendClientMessage(playerid,0xFFFFFFFF,"Kalbeti per racija savo komandai: /t [tekstas]");
new msg[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(msg,sizeof(msg),"[USA] %s: %s",pname,cmdtext[3]);
SendClientMessageToAll(TEAM_GREEN,0xFFFFFFFF,msg);
return 1;
}
heres the error:
D:\GTA SA\Usa vs. Mec\gamemodes\map3.pwn(1131) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Please, help... Thanks