SA-MP Forums Archive
some errors in a cmd - 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: some errors in a cmd (/showthread.php?tid=437482)



some errors in a cmd - CrackMatic - 15.05.2013

Код:
CMD:vtime(playerid, params[]) {
      new time, minute, new str[100];
      if(Player[playerid][viplevel] < 1) return ERRORMSG(playerid);
      if(sscanf(params, "dd", time, minute)) return SendClientMessage(playerid, ADMIN_ACTION, "•• Correct syntax is /vtime[ time ] [ minute ]");
      format(str, sizeof(str), "[Success]: You changed the time to: %d hours and %d minutes", time, minute);
      SendClientMessage(playerid, -1, str);
      SetPlayerTime(playerid, time, minute);
      return 1;
}
Код:
C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4711) : error 001: expected token: "-identifier-", but found "new"
C:\Usersc\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : error 017: undefined symbol "str"
C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : error 017: undefined symbol "str"
C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : error 029: invalid expression, assumed zero
C:\Users\c\Desktop\Andrei\Battlezone 2050\gamemodes\vipsystemadded.pwn(4714) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.



AW: some errors in a cmd - HurtLocker - 15.05.2013

new time, minute, str[100];


Re: some errors in a cmd - CrackMatic - 15.05.2013

thanks repped.