Errors - 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: Errors (
/showthread.php?tid=301897)
Errors -
-BadGirl- - 06.12.2011
Help Me With This
Erros
Код:
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(6151) : warning 219: local variable "Pos" shadows a variable at a preceding level
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(6153) : error 028: invalid subscript (not an array or too many subscripts): "Pos"
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(6153) : warning 215: expression has no effect
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(6153) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(6153) : error 029: invalid expression, assumed zero
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(6153) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Code
Код:
if(pickupid == CarPickup)
{
new Float:Pos[4];
DestroyVehicle(g_pVeh[playerid]);
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
g_pVeh[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], Pos[3], 0, 0, 5000000);
PutPlayerInVehicle(playerid, g_pVeh[playerid], 0);
SendClientMessage(playerid, -1, "Vehicle created.");
Create3DTextLabel("{1BD6E0}Car Spawn",0x03B8FCFF,2035.0969, 1465.6558, 10.8203, 50,0);
}
Re: Errors - T0pAz - 06.12.2011
See if it works or not
pawn Код:
if(pickupid == CarPickup)
{
new Float:Poszz[4];
DestroyVehicle(g_pVeh[playerid]);
GetPlayerPos(playerid, Poszz[0], Poszz[1], Poszz[2]);
GetPlayerFacingAngle(playerid, Poszz[3]);
g_pVeh[playerid] = CreateVehicle(560, Poszz[0], Poszz[1], Poszz[2], Poszz[3], 0, 0, 5000000);
PutPlayerInVehicle(playerid, g_pVeh[playerid], 0);
SendClientMessage(playerid, -1, "Vehicle created.");
Create3DTextLabel("{1BD6E0}Car Spawn",0x03B8FCFF,2035.0969, 1465.6558, 10.8203, 50,0);
}
Re: Errors -
-BadGirl- - 06.12.2011
i think Its works
Re: Errors -
vassilis - 06.12.2011
try this
pawn Код:
if(pickupid == CarPickup)
new Float:x,y,z,angle;
DestroyVehicle(g_pVeh[playerid]);
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, angle);
g_pVeh[playerid] = CreateVehicle(560, x, y, z, angle, 0, 0, 5000000);
PutPlayerInVehicle(playerid, g_pVeh[playerid], 0);
SendClientMessage(playerid, -1, "Vehicle created.");
Create3DTextLabel("{1BD6E0}Car Spawn",0x03B8FCFF,2035.0969, 1465.6558, 10.8203, 50,0);
}