Hey, Somebody help maybe?
#1

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
Reply
#2

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

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?
Reply
#4

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.
Reply
#5

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)