15.06.2009, 13:47
If you have readed my other topic, I had probpems with the cop radio... I fixed it by adding...
Anyway.. now I have to change some cmds in the script to that TEAM_LVPD, it worked on all cmds, but not this one:
The errors/warnings I get is:
All errors if from the same line "701" that is:
What is the problem, all this errors/warnings on the same line?!
NOTE: If I delete the full cmd, the errors just moves down to the other cmd /offduty...
Код:
if(gTeam[playerid] == TEAM_LVPD)
Код:
if (strcmp("/onduty", cmdtext, true, 7) == 0) { if(gTeam[playerid] == TEAM_LVPD) new str[256], pname[256]; GetPlayerName(playerid, pname, 256); format(str, 256, "Officer %s Is now on duty!", pname, cmdtext[7]); SendClientMessageToAll(COLOR_BLUE, str); return 1; }
Код:
declaration of a local variable must appear in a compound block undefined symbol "str" expression has no effect expected token: ";", but found "]" too many error messages on one line 4 Errors
Код:
new str[256], pname[256];
NOTE: If I delete the full cmd, the errors just moves down to the other cmd /offduty...