Pomozite pls

Započeo Reza, April 09, 2010, 21:54:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Napravim ovu komandu (radim mod od 0)

if(strcmp(cmd, "/veh", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] < 4)
{
    SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Color Number can't be below 0 or above 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Color Number can't be below 0 or above 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
format(string, sizeof(string), "   Vehicle %d spawned.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}


i izdaju mi ovi errori

C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(176) : error 017: undefined symbol "cmd"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 017: undefined symbol "PlayerInfo"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : warning 215: expression has no effect
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 001: expected token: ";", but found "]"
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : error 029: invalid expression, assumed zero
C:\Users\biljana\Desktop\Test_Server\gamemodes\marinaGM.pwn(180) : 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.




evo linije 176 i 180





Pls pomozite..

Hvala.
Poslednja Izmena: April 09, 2010, 21:55:29 POSLE PODNE od ...:::---REZA---:::...


Kliknite-->registrirajte se i zaradite 
http://www.neobux.com/?r=neoreza

E ti si stvarno vise sa tim temama joooj.

"Postova: 65" => Pola od toga su "novootvorene" teme  :-[

Dodaj new cmd[256]; pod OnPlayerCommandText
   new cmd[256];

enum pInfo
{
pAdmin,
};

new PlayerInfo[MAX_PLAYERS][pInfo];
imas jos svoje PlayerInfove poput pAdmin, pGameMaster, pDonateRank, gPupgrade, pConnectTime, pReg, pSex, pAge, pOrigin i tako dalje.

Sad tu di ti je enum pInfo

A ovo ostalo si zbilja nest' sjeb**.
Respekt: [H]265, John, [03]Garsino, LordShigi, Dujma, Carlsson, Randy, Jacobs, Hu5o, Toni, Lukas, Curtis, Ivo, Hawks, Jack, Koksildo, gonss

Haha OMG => http://zaslike.com/files/9rd5urq94yqagvdsx3i.png [ovo nema nigdje]