[Pomoc] Vracanje gde ste bili

Započeo [A]hidroKrilac, Jun 20, 2011, 18:19:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:   Ravens
Detaljan opis problema:  Ovako mi stoji u skripti... if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
    {
        new plname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, plname, sizeof(plname));
      SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pVirWorld]);
        SafeSetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
    SafeSetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z] + 1);
format(string, sizeof(string), "Welcome to Los Santos, %s... Returning where have you been",plname);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "~w~Welcome, ~b~%s. ~n~~y~Returning where have you been!", plname);
    GameTextForPlayer(playerid, string, 5000, 1);
    return 1;
}

Dio skripte: Ja sam to ispravi ovako:             if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
if(house !=255)
{
    if(PlayerInfo[playerid][pSpawn] == 1) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SafeSetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
return 1;
}
}
 

Neke slike/video za lakse dobivanje pomoci(neobavezno): 


Onda sam dobio ovaj warning

C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(6470) : warning 204: symbol is assigned a value that is never used: "string"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Warning.

Kada izbrisem tu liniju pojavi mi se novih 8 errora..ako treba postacu ih
//

Samo izbriši liniju 6470 i sve bi trebalo biti oke. Ako dobiješ neke warninge ili errore onda ih samo napiši ovdje pa ćemo vidjet.

Last nick: Paradox

Evo pogledaj:

dobijem 8 errora

prvo warning
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(6470) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.


Kada izbrisem ovo to je linija 6470

new string[128], rand;

C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(6484) : error 017: undefined symbol "rand"
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(6485) : error 017: undefined symbol "rand"
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(6721) : error 017: undefined symbol "rand"
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(6722) : error 017: undefined symbol "rand"
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(7033) : error 017: undefined symbol "rand"
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(7034) : error 017: undefined symbol "rand"
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(7365) : error 017: undefined symbol "rand"
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(7366) : error 017: undefined symbol "rand"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.

Linije (pisacu ih kako dolaze kako su ovde izlistani errori):
                 rand = random(sizeof(gMedicSpawns));
SafeSetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
    rand = random(sizeof(gCopPlayerSpawns));
    rand = random(sizeof(gCopPlayerSpawns));


i ostali su na isti fazon :D
//

Na liniji 6470 izbriši samo string[128];


//Trenutno:
new string[128], rand;

//Kako treba:
new rand;

Last nick: Paradox

ili definiraj taj "rand" ili ga izbrisi :D

Citat: |ЯPF| Paradox poslato Jun 20, 2011, 19:29:01 POSLE PODNE
Na liniji 6470 izbriši samo string[128];


//Trenutno:
new string[128], rand;

//Kako treba:
new rand;


E hvala ti puno :)

Gde zivis , vodim na kafu :D ? :D
//