25.03.2015, 10:17
Could someone tell me why this wouldnt/wont work
I keep getting these errors
Код:
#include <a_samp> #include <ZCMD> #define COLOR_GREY 0xAFAFAFAA new masked[MAX_PLAYERS]; CMD:mask(playerid, params[]) { if(masked[playerid] == 0) { masked[playerid] = 1; SendClientMessage(playerid, -1,"You are now masked and your name is hidden."); for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i,playerid, false); } else { masked[playerid] = 0; SendClientMessage(playerid, -1,"You are no longer masked and your name is visble."); for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i,playerid, true); } return true; } public OnPlayerText(playerid, text[]) { new string[128]; new ProxDetector; if(masked[playerid] == 1) { format(string,sizeof(string), "Stranger: %s",text); ProxDetector(20.0, playerid, string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY); } else { format(string, sizeof(string), "%s: %s", sendername,text); ProxDetector(20.0, playerid, string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY); } }
Quote:
ALL ON LINE 36 error 012: invalid function call, not a valid address : warning 215: expression has no effect : warning 215: expression has no effect : warning 215: expression has no effect : warning 215: expression has no effect : warning 215: expression has no effect : warning 215: expression has no effect : warning 215: expression has no effect : warning 215: expression has no effect : error 001: expected token: ";", but found ")" : error 029: invalid expression, assumed zero : fatal error 107: too many error messages on one line |