10.05.2013, 23:52
Eu estou com 1 problema tenho aqui uns erros no gamemode.
Erros:
Linhas dos Erros:
Erros:
PHP код:
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(49) : error 017: undefined symbol "strtok"
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(49) : error 033: array must be indexed (variable "cmd")
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(52) : warning 217: loose indentation
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(57) : error 017: undefined symbol "PlayerInfo"
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(57) : warning 215: expression has no effect
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(57) : error 001: expected token: ";", but found "]"
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(57) : error 029: invalid expression, assumed zero
C:\Users\Bruno\Desktop\Meu GameMode\gamemodes\RP-SD.pwn(57) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
PHP код:
44 public OnPlayerCommandText(playerid, cmdtext[])
45 {
46 new string[256];
47 new cmd[256];
48 new idx;
49 cmd = strtok(cmdtext, idx);
50 new tmp[256];
51 new giveplayerid;
52 if(strcmp(cmd, "/rota", true) == 0)
53 {
54 new vehicleid = GetPlayerVehicleID(playerid);
55 if(GetVehicleModel(vehicleid) == 431)
56 {
57 if(PlayerInfo[playerid][pJob] == 7)