03.11.2009, 16:02
how to fix these errors: ?
errors are in these lines:
Код:
error 029: invalid expression, assumed zero error 004: function "OnPlayerCommandText" is not implemented warning 219: local variable "string" shadows a variable at a preceding level error 017: undefined symbol "cmdtext" error 017: undefined symbol "cmdtext" error 029: invalid expression, assumed zero warning 215: expression has no effect error 001: expected token: ";", but found "]" fatal error 107: too many error messages on one line
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new giveplayername[MAX_PLAYER_NAME]; //line 2739 new string[256]; new idx; new cmd[256]; new tmp[256]; cmd = strtok(cmdtext, idx); new sds[128]; new playermoney; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new giveplayerid; //moneys2, idx2; new moneys; new Message[256]; new gMessage[256]; new pName[MAX_PLAYER_NAME+1]; new iName[MAX_PLAYER_NAME+1]; dcmd(prob, 4, cmdtext); //line 2757