SA-MP Forums Archive
Y ain't this working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y ain't this working (/showthread.php?tid=351324)



Y ain't this working - Opah - 15.06.2012

Код:
if(text[0] == '.' && PlayerInfo[playerid][PlayerAdmin]>=1){ if(PlayerInfo[playerid][PlayerAdmin] <= 1) return SendClientMessage(playerid,COLOR_RED, "You Cant Use This Command !!!"); new string[256]; new Name[MAX_PLAYER_NAME];GetPlayerName(playerid, Name, sizeof(Name)); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && PlayerInfo[i][PlayerAdmin] >= 1) { format(string,sizeof(string),"[Achat]%s: "WHITE"%s",Name,string); SendClientMessage(i,COLOR_BRIGHTBLUE,string); } } }
this is under OnPlayerText callback


Re: Y ain't this working - Kindred - 15.06.2012

Considering it has this:

pawn Код:
if(text[0] == '.'
Wouldn't this mean that you only typed a period? Not certain, never tried to do anything like this.