13.03.2010, 08:13
I'm trying to make a TDM script and i would like to create cmd /tpm. Copied something but well... I have errors. Maby someone could help me with 'em?
Errors
Tried to search but nothing.. :/
Maby someone can help?
Errors
Код:
error 017: undefined symbol "text" error 029: invalid expression, assumed zero warning 215: expression has no effect warning 204: symbol is assigned a value that is never used: "Text"
Код:
public OnPlayerTeamPrivmsg(playerid, msg[]) { new sSenderName[24], sString[128], Text[50]; GetPlayerName(playerid, sSenderName, sizeof sSenderName); format(sString, sizeof sString, "TeamMessage <%s>: %s", senderName, text); for(new iPlayer = 0 ; iPlayer < MAX_PLAYERS; iPlayer++) { if(IsPlayerAdmin(iPlayer)) { SendPlayerMessage(iPlayer, 0xFFFFFFAA, sString); } } return true; }
Maby someone can help?