[Pomoc] Race

Započeo Matteo, Septembar 26, 2010, 15:02:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ovako radio sam po jednom tutu race i izbaci mi ove errore

C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(571) : error 017: undefined symbol "giveplayerid"
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : warning 217: loose indentation
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : error 017: undefined symbol "CP"
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : error 017: undefined symbol "giveplayerid"
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : error 029: invalid expression, assumed zero
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : fatal error 107: too many error messages on one line


Ovo sam napisao pod OnPlayerCommandText:
if (strcmp("/vozi", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
SetPlayerCheckpoint(giveplayerid, -2041.6737, 285.5828, 34.2441, 8.0);// ovdje stavite kordinate prvog CP-a. ovo sto pise (8.0)To vaj je velicina CP-a.
CP[giveplayerid] = 900;
}
else
{
SendClientMessage(playerid,0xAA3333AA, "Vi niste Admin");
}
return 1;
}


A ovo pod OnPlayerEnterCheckpoint:
else if(CP[playerid] == 900) { CP[playerid] = 901; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1860.7168, 1403.6272, 6.7553, 8.0); }//Ovdje idu kordinate 2 cp-a
    else if(CP[playerid] == 901) { CP[playerid] = 902; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1724.0504, 46.1516, 3.1250, 8.0); }//Ovdje idu kordinate 3 cp-a
    else if(CP[playerid] == 902) { CP[playerid] = 903; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2116.4973, 291.5659, 34.5625, 8.0); }//Ovdje idu kordinate 4 cp-a
else if(CP[playerid] == 903)//Kraj Race-a
    {
DisablePlayerCheckpoint(playerid);
CP[playerid] = 0;
}


Zna li ko kako da popravim errore.... Pomoc.. Hvala unaprijed

Citat: matteokov poslato Septembar 26, 2010, 15:02:45 POSLE PODNE
Ovako radio sam po jednom tutu race i izbaci mi ove errore

C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(571) : error 017: undefined symbol "giveplayerid"
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : warning 217: loose indentation
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : error 017: undefined symbol "CP"
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : error 017: undefined symbol "giveplayerid"
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : error 029: invalid expression, assumed zero
C:\Users\Matteo\Desktop\CRO Extreme\gamemodes\extremeserver.pwn(572) : fatal error 107: too many error messages on one line

undefined symbol "giveplayerid"----takvo nesto ne postoji...ako oces da das nesto koristis GivePlayerWeapon ili Money,zavisi sta oces da stavis...ovo giveplayerid prepravi u playerid

warnin 217:loose indentation---mora biti tacno jedno ispod drugog....ne smije biti nesto na sredini a drugo na pocetku..moraju biti paralelni

undefined symbol:CP umjesto CP se koristi checkpoint...CP je samo skracenica

ostalo je isto kao gore..





Unutar ubaci new giveplayerid[MAX_PLAYER_NAME];



Citat: matteokov poslato Septembar 26, 2010, 15:54:06 POSLE PODNE
jos vise errora xD
ja sam tebi rekao sta je sta a ne kako da popravis errore