Jump to content

Recommended Posts

Posted

Problema la sistem /vipname am rezolvat eroare dupa eroare la el, dar nu gasesc amarata aia de ”;” lipsa.


//D:\GM\REFRESH-ZONE BY Mahony\gamemodes\refresh-zone.pwn(14328) : warning 217: loose indentation // ASTA NU CONTEAZA.

D:\GM\REFRESH-ZONE BY Mahony\gamemodes\refresh-zone.pwn(20041) : error 029: invalid expression, assumed zero
D:\GM\REFRESH-ZONE BY Mahony\gamemodes\refresh-zone.pwn(20041) : warning 215: expression has no effect
D:\GM\REFRESH-ZONE BY Mahony\gamemodes\refresh-zone.pwn(20041) : error 001: expected token: ";", but found "]"
D:\GM\REFRESH-ZONE BY Mahony\gamemodes\refresh-zone.pwn(20041) : error 029: invalid expression, assumed zero
D:\GM\REFRESH-ZONE BY Mahony\gamemodes\refresh-zone.pwn(20041) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Sistemu vname e asta:

CMD:betavipname(playerid, params[])
{
new vipnametut[15];
new vehicleid = GetPlayerVehicleID(playerid);
if(sscanf(params, "s[15]", vipnametut)) return SCM(playerid, -1, "SINTAX: /vipname <name>");
if(isnull(vipnametut)) return vipnametut = "[]";
if(strlen(vipnametut) > 15)return SCM(playerid, -1, "Caractere maxime 15");
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)return SCM(playerid, -1, "Nu esti conducatorul acestei masini" );
{
//if(CarInfo[OwnedVeh(playerid)] [cVIP] == 0) return SCM(playerid, -1, "Acesta masina nu este una de tip VIP");
if(CarInfo[OwnedVeh(vehicleid)][cModel] == 411)
{
DestroyDynamicObject(vText[OwnedVeh(vehicleid)][playerid]); //LInia 20041
new szMessage[256];
if(CarInfo[OwnedVeh(vehicleid)][cModel] == 411)
{
vText[OwnedVeh(platerid)][playerid] = CreateDynamicObject(19327, -2597.4270, -5.3526, -87.6999, 90.40001, -87.1805);
SetDynamicObjectToVehicle(vText[OwnedVeh(vehicleid)][playerid], 0, vipnametut, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1);
AttachDynamicObjectToVehicle(vText[OwnedVeh(playerid)][playerid], vehicleid, 0.0,-1.9,0.3,270.0, 0.0, 0.0);
}
format(szMessage, sizeof(szMessage), "{F2CF09}Text pentru vehicul setat: '%s'", vipnametut);
SCM(playerid, COLOR_YELLOW, szMessage);
new qQuery[1000];
mysql_format(SQL,qQuery, sizeof(qQuery),"UPDATE 'cars' SET 'VIPName'='%s' WHERE 'ID'='%d'",vipnametut, OwnedVeh(playerid));
mysql_tquery(SQL,qQuery,"","");
}
else return SCM(playerid, -1, COLOR_WHITE, "Nu poti pune acest tip text pe o masina care nu este VIP");
}
else return SCM(playerid, -1, COLOR_WHITE, "Aceasta masina nu este a ta");
return 1; 
}

Pastebin: http://pastebin.com/6iQcryjB

Posted

  1.         if(CarInfo[OwnedVeh(vehicleid)][cModel] == 411)

  2.         {

            DestroyDynamicObject(vText[OwnedVeh(vehicleid)][playerid]);

            new szMessage[256];

 

Dupa asta inchide acolada un }

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp