SA-MP Forums Archive
personal Car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: personal Car (/showthread.php?tid=303852)



personal Car - saringan_cs - 15.12.2011

282
Quote:

for(new h = carsonserver; h < sizeof(CarInfo); h++)

Quote:

C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : error 017: undefined symbol "CarInfo"
C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : error 036: empty statement
C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : error 017: undefined symbol "h"
C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Quote:

enum cInfo
{
cModel,
Float:cLocationx,
Float:cLocationy,
Float:cLocationz,
Float:cAngle,
cColorOne,
cColorTwo,
cOwner[MAX_PLAYER_NAME],
cDescription[12],
cOwned,
cLock,

};

so??'


Re: personal Car - saringan_cs - 15.12.2011

Quote:

if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])
{
if(PlayerInfo[playerid][pPcarkey] == -1) { PlayerInfo[playerid][pPcarkey] = idcar; }
else if(PlayerInfo[playerid][pPcarkey2] == -1) { PlayerInfo[playerid][pPcarkey2] = idcar; }
else if(PlayerInfo[playerid][pPcarkey3] == -1) { PlayerInfo[playerid][pPcarkey3] = idcar; }
else { return 1; }
CarInfo[idcar][cOwned] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /v park!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Felicitari ti-ai cumparat o masina noua!");
TogglePlayerControllable(playerid, 1);
OnPropUpdate(); SavePlayerData(playerid);
return 1;
}


C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(557) : error 017: undefined symbol "cValue"

I dont need cValue !!!!!!


This is FS !! please help me


http://pastebin.com/QjGptUgR


Re: personal Car - Rob_Maate - 15.12.2011

Don't create a 3-dimensional array unless you have to. That's a massive array.

pawn Код:
enum cInfo
{
    cModel,
    Float:cLocationx,
    Float:cLocationy,
    Float:cLocationz,
    Float:cAngle,
    cColorOne,
    cColorTwo,
    cOwner[MAX_PLAYER_NAME],
    cDescription[12],
    cOwned,
    cLock
};
new CarInfo[MAX_VEHICLES][cInfo];



Re: personal Car - saringan_cs - 15.12.2011

This is FS !! please help me


http://pastebin.com/QjGptUgR


Re: personal Car - saringan_cs - 16.12.2011

please help me


Re: personal Car - saringan_cs - 16.12.2011

Nothing??


Re: personal Car - saringan_cs - 16.12.2011

======??======


Re: personal Car - saringan_cs - 17.12.2011

ohhh guys sorry for x5 post .. i need help