SA-MP Forums Archive
Hey, Somebody help maybe? - 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: Hey, Somebody help maybe? (/showthread.php?tid=352603)



Hey, Somebody help maybe? - Racer. - 20.06.2012

I have problem with one line.
PHP код:
COMMAND:salvestaauto(playeridparams[])
{
    new 
vehicleid GetPlayerVehicleID(playerid);
    
SaveVehicle();
    if(
VehiclesMod[vehicleid][0] == || VehiclesMod[vehicleid][1] == || VehiclesMod[vehicleid][1] == || VehiclesMod[vehicleid][1] == || VehiclesMod[vehicleid][4] == 0)
    {
        new 
Float:angle;
        
VehiclesMod[vehicleid][0] = GetVehicleModel(vehicleid);
        
GetVehiclePos(vehicleidVehiclesMod[vehicleid][1], VehiclesMod[vehicleid][1], VehiclesMod[vehicleid][1]);// This line is not correct, put i don't know, how i can correct it :D
        
VehiclesMod[vehicleid][4] = GetVehicleZAngle(vehicleidangle);
        
SendClientMessage(playerid,0x00FF00AA,"Andmebaasi salvestatud.");
    }
    else
    {
        
SendClientMessage(playerid,0xFFFFFF96,"See auto on juba olemas andmebaasis.");
    }
    return 
1;

Somebody can correct GetVehiclePos line? Thx.
Sorry my bad english


Re: Hey, Somebody help maybe? - [MM]RoXoR[FS] - 20.06.2012

pawn Код:
GetVehiclePos(vehicleid, VehiclesMod[vehicleid][0], VehiclesMod[vehicleid][1], VehiclesMod[vehicleid][2]);



Re: Hey, Somebody help maybe? - Racer. - 20.06.2012

It isn't correct, when i complier, it show 3 warnings.
PHP код:
C:\Documents and Settings\eric\Desktop\Hood test\filterscripts\carcolor.pwn(51) : warning 213tag mismatch
C
:\Documents and Settings\eric\Desktop\Hood test\filterscripts\carcolor.pwn(51) : warning 213tag mismatch
C
:\Documents and Settings\eric\Desktop\Hood test\filterscripts\carcolor.pwn(51) : warning 213tag mismatch 
Somebody can correct it?


Re: Hey, Somebody help maybe? - [MM]RoXoR[FS] - 20.06.2012

Quote:
Originally Posted by Racer.
Посмотреть сообщение
It isn't correct, when i complier, it show 3 warnings.
PHP код:
C:\Documents and Settings\eric\Desktop\Hood test\filterscripts\carcolor.pwn(51) : warning 213tag mismatch
C
:\Documents and Settings\eric\Desktop\Hood test\filterscripts\carcolor.pwn(51) : warning 213tag mismatch
C
:\Documents and Settings\eric\Desktop\Hood test\filterscripts\carcolor.pwn(51) : warning 213tag mismatch 
Somebody can correct it?
The cmd is fine

VehiclesMod[vehicleid][0] must be float.
Check that in declaration.


Re: Hey, Somebody help maybe? - Racer. - 20.06.2012

Thx, put i have new problem
I want do car saves system, put it doesn't save positsion correctly.
I give my script and think somebody help to fix this problem
There is Script: http://pastebin.com/z0dE1FDs
Sorry, my bad english...