pomoc oko ove komande

Započeo apocolcase, Jul 01, 2010, 15:31:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

u jednom gamemodu sam nasao komandu /respawn i kad je stavim pokaze mi 5 errora:
E:\miso\gta\Server2\gamemodes\srbdm.pwn(104) : warning 217: loose indentation
E:\miso\gta\Server2\gamemodes\srbdm.pwn(104) : error 017: undefined symbol "cmd"
E:\miso\gta\Server2\gamemodes\srbdm.pwn(106) : error 017: undefined symbol "PlayerInfo"
E:\miso\gta\Server2\gamemodes\srbdm.pwn(106) : warning 215: expression has no effect
E:\miso\gta\Server2\gamemodes\srbdm.pwn(106) : error 001: expected token: ";", but found "]"
E:\miso\gta\Server2\gamemodes\srbdm.pwn(106) : error 029: invalid expression, assumed zero
E:\miso\gta\Server2\gamemodes\srbdm.pwn(106) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.


i evo ta komanda
if(strcmp(cmd,"/respawn",true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
    tmp = strtok(cmdtext,idx);
    giveplayerid = ReturnUser(tmp);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid,0xAA3333AAA,"USAGE: /respawn [ID]");
        return 1;
    }
SetPlayerSpawn(giveplayerid);
}
return 1;


Nez

*

jel koristis GF/GF-EDIT gm?
uozbiljite se :(


Nez

*

Citat: apocolcase poslato Jul 01, 2010, 16:33:02 POSLE PODNE
pravim novi preko new
pa nemozes onda samo tako koristiti komande iz godfathera :D

nit imas playerinfo a nit si definirao cmd u onplayercommandtext :)

uostalom koja je fora praviit novi gm ako ces kopirati iz godfathera?
uozbiljite se :(