I need help
#6

Quote:

C:\Users\Pablo\Desktop\Sona GM\gamemodes\Sona.pwn(1111) : error 076: syntax error in the expression, or invalid function call
C:\Users\Pablo\Desktop\Sona GM\gamemodes\Sona.pwn(1111) : error 029: invalid expression, assumed zero
C:\Users\Pablo\Desktop\Sona GM\gamemodes\Sona.pwn(1135) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Quote:

if(!strcmp,cmdtext[1],"me",true,2)) {
new string[120];
new player[24];
GetPlayerName(playerid,player,24);
if(!strlen(cmdtext))
{
SendClientMessage(playerid,COLOR_GREY,"Usage: /me [action]");
return 1;
}
format(string,sizeof(string),"%s %s",player,cmdtext[4]);
for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(GetDistanceBetweenPlayers(playerid,i) <= 30 )
{
SendClientMessage(i,COLOR_PURPLE,string);
return 1;
}
return 1;
}

Reply


Messages In This Thread
I need help - by pablodc - 25.08.2009, 19:50
Re: I need help - by Joe Staff - 25.08.2009, 19:55
Re: I need help - by The_Tough - 25.08.2009, 19:56
Re: I need help - by Memoryz - 25.08.2009, 19:59
Re: I need help - by XtremeChio - 25.08.2009, 20:03
Re: I need help - by pablodc - 25.08.2009, 20:04
Re: I need help - by speedruntrainer - 25.08.2009, 20:17
Re: I need help - by pablodc - 25.08.2009, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)