- 0
Care e neregula cu asta?
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
florin
Am vrut sa pun si eu cateva cv 3 d pe svr meu cu functia asta : [pawn]//3D label car
public Velocimetro()
{
for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p))
{
new vehicleid = GetPlayerVehicleID(p);
if(vehicleid)
{
new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;
GetVehicleVelocity(vehicleid, X, Y, Z);
PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;
GetVehicleHealth(vehicleid,vhealth);
format(string,sizeof string ,"{ff0000}[RGS]2Pac.Shakur and [RGS]Anatas\n{3399ff}Vehicle: {ff99cc}%s\n{ff0000}Health: {ff99cc}%.2f\n{ffff00}Speed: {ff99cc}%ikm/h", NombreAutos[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor));
DeletePlayer3DTextLabel(p, Velocimetro3Dtext);
Velocimetro3Dtext = CreatePlayer3DTextLabel(p, string, 0xFB0000FF, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid);
} else if(p) { DeletePlayer3DTextLabel(p, Velocimetro3Dtext); }
} [/pawn]
Dar imi da erori
[pawn]C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(543) : warning 235: public function lacks forward declaration (symbol "Velocimetro")
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(550) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 017: undefined symbol "NombreAutos"
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : warning 215: expression has no effect
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Florin\Desktop\Adooble LuxAdmin\Adooble Lux Admin\gamemodes\Florin.pwn(554) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors. [/pawn]
[move]ce ias putea face? [/move]
wde [We Drift Everywhere] clan!
17 answers to this question
Recommended Posts