19.09.2012, 18:36
Код:
D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(8970) : error 017: undefined symbol "ActiveEvent" D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(8977) : warning 213: tag mismatch D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(8977) : warning 213: tag mismatch D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(8977) : warning 213: tag mismatch D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(8979) : warning 204: symbol is assigned a value that is never used: "EventWorld" D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(8978) : warning 204: symbol is assigned a value that is never used: "EventInt" D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(9000) : error 017: undefined symbol "ActiveEvent" D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(9029) : error 017: undefined symbol "EventText" D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(9029) : error 017: undefined symbol "EventText" D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(9029) : error 029: invalid expression, assumed zero D:\games\Скинове О.О\Без гангове\gamemodes\gangwars.pwn(9029) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
Код:
if(ActiveEvent == 0) { new EventX; new EventY; new EventZ; new EventInt; new EventWorld; GetPlayerPos(playerid, EventX, EventY, EventZ); EventInt = GetPlayerInterior(playerid); EventWorld = GetPlayerVirtualWorld(playerid); SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event position."); }
Код:
if(ActiveEvent == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [name]"); SendClientMessage(playerid, COLOR_GRAD1, "Available names: Jointext, Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5"); return 1; } if(strcmp(tmp,"jointext",true) == 0) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo jointext [text]"); return 1; } format(EventText, sizeof(EventText), "%s", result);