[Pomoc] Error carid

Započeo Yakavetta, Februar 03, 2013, 12:34:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Yakavetta

Skripta koju koristim : BSRP
Problem : gamemodes\bsrp.pwn(6336) : error 017: undefined symbol "carid"
gamemodes\bsrp.pwn(6338) : error 017: undefined symbol "carid"


Deo Skripte:
if(CP[playerid] == 4598 && DrvosjecaKamion(carid)) { CP[playerid] = 4599;
DisablePlayerCheckpoint(playerid); TogglePlayerControllable(playerid, 0); Drvas[playerid] = 1; SetTimerEx("Drvas1",5000, false, "i", playerid); SetPlayerCheckpoint(playerid, 1578.8615,24.8386,23.9079,10.0); SendClientMessage(playerid, COLOR_LIGHTRED, "{995031}Sacekaj da se drva utovare. ");}
    else if(CP[playerid] == 4599 && DrvosjecaKamion(carid))

new carid = GetPlayerVehicleID(playerid);

Yakavetta

 Ja sam postavio tu i opet mi izlaze errori da ne treba na drugom mestu ?
if(CP[playerid] == 4598 && DrvosjecaKamion(carid)) { CP[playerid] = 4599;
DisablePlayerCheckpoint(playerid); TogglePlayerControllable(playerid, 0); Drvas[playerid] = 1; SetTimerEx("Drvas1",5000, false, "i", playerid); SetPlayerCheckpoint(playerid, 1578.8615,24.8386,23.9079,10.0); SendClientMessage(playerid, COLOR_LIGHTRED, "{995031}Sacekaj da se drva utovare. ");}
    else if(CP[playerid] == 4599 && DrvosjecaKamion(carid))
{
new carid = GetPlayerVehicleID(playerid);
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "{995031}Dovezli ste drva! ");
TogglePlayerControllable(playerid, 0);
Drvas[playerid] = 1;
SetTimerEx("Drvas1",5000, false, "i", playerid);
new randpay = 200 + random(100);
new bonus = 200 + random(50);
new payout = (randpay + bonus)/3;
        format(string, sizeof(string), "{995031}Zarada: %d$ | Bonus: %d$ | Sumarski Pecat: - %d$ |Ukupna zarada: %d$.", randpay,bonus,payout,randpay + bonus);
    SendClientMessage(playerid, 0x9A6735FF, string);
JBC_GivePlayerMoney(playerid, randpay + bonus);
        SBizzInfo[26][sbTill] += 200;
ExtortionSBiz(26, 200);


new carid = GetPlayerVehicleID(playerid);
if(CP[playerid] == 4598 && DrvosjecaKamion(carid)) { CP[playerid] = 4599;
DisablePlayerCheckpoint(playerid); TogglePlayerControllable(playerid, 0); Drvas[playerid] = 1; SetTimerEx("Drvas1",5000, false, "i", playerid); SetPlayerCheckpoint(playerid, 1578.8615,24.8386,23.9079,10.0); SendClientMessage(playerid, COLOR_LIGHTRED, "{995031}Sacekaj da se drva utovare. ");}
    else if(CP[playerid] == 4599 && DrvosjecaKamion(carid))
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "{995031}Dovezli ste drva! ");
TogglePlayerControllable(playerid, 0);
Drvas[playerid] = 1;
SetTimerEx("Drvas1",5000, false, "i", playerid);
new randpay = 200 + random(100);
new bonus = 200 + random(50);
new payout = (randpay + bonus)/3;
        format(string, sizeof(string), "{995031}Zarada: %d$ | Bonus: %d$ | Sumarski Pecat: - %d$ |Ukupna zarada: %d$.", randpay,bonus,payout,randpay + bonus);
    SendClientMessage(playerid, 0x9A6735FF, string);
JBC_GivePlayerMoney(playerid, randpay + bonus);
        SBizzInfo[26][sbTill] += 200;
ExtortionSBiz(26, 200);

Yakavetta