Jump to content
  • 0

pomoc /acar /dacar --> errors


ManSlayer

Dotaz

errori:

C:\DOCUME~1\Marek2\Desktop\Pawno\Gamemody\nlife.pwn(1373) : error 028: invalid subscript (not an array or too many subscripts): "auta"
C:\DOCUME~1\Marek2\Desktop\Pawno\Gamemody\nlife.pwn(1373) : warning 215: expression has no effect
C:\DOCUME~1\Marek2\Desktop\Pawno\Gamemody\nlife.pwn(1373) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Marek2\Desktop\Pawno\Gamemody\nlife.pwn(1373) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Marek2\Desktop\Pawno\Gamemody\nlife.pwn(1373) : fatal error 107: too many error messages on one line

 

a riadok:

if(auta[playerid] == 30) return SendClientMessage(playerid, COLOR_RED, "Na servery je moc aut (30)! musíš ich najprv vymazat (/dacar)");

Link to comment
Share on other sites

12 odpovědí na tuto otázku

Recommended Posts

  • 0

if(auta[playerid] == 30) return SendClientMessage(playerid, COLOR_RED, "Na servery je moc aut [30]! musíš ich najprv vymazat [/dacar]");

 

Zkus to takhle, ale tady asi chyba neni tak dej vic radku..

Link to comment
Share on other sites

  • 0

stale to pise.. tu je vsetko

dcmd_acar(playerid, params[])
{	//---------------------------------------|
   TestPrint("dcmd_acar(playerid,params[])");
   //---------------------------------------|
     if(HracInfo[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_RED,"< ! > Nemáš dostatočný AdminLevel !!");
       new ID = strval(params);
       if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Použitie: /acar id auta");
       if( ID < 400 || ID > 611 ) return SendClientMessage(playerid, COLOR_RED, "Rozmedzie Aut 400 - 611 !");
     if(auta[playerid] == 30) return SendClientMessage(playerid, COLOR_RED, "Na servery je moc aut [30]! musíš ich najprv vymazat [/dacar]");
       new Float:X,Float:Y,Float:Z,Float:SVK;
     GetPlayerPos(playerid, X,Y,Z);
     SendClientMessage(playerid,COLOR_BILA,"Auto vytvorené.");
       max[auta[playerid]][playerid] = CreateVehicle(ID,X,Y,Z,SVK,-1,-1,6000);
       auta[playerid] ++;

   return 1;
}

Link to comment
Share on other sites

  • 0

dcmd_acar(playerid, params[])

{ //---------------------------------------|

TestPrint("dcmd_acar(playerid,params[])");

//---------------------------------------|

if(HracInfo[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_RED,"< ! > Nemáš dostatočný AdminLevel !!");

new ID = strval(params);

if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Použitie: /acar id auta");

if( ID < 400 || ID > 611 ) return SendClientMessage(playerid, COLOR_RED, "Rozmedzie Aut 400 - 611 !");

if(auta[playerid] == 30) return 0;

new Float:X,Float:Y,Float:Z;

GetPlayerPos(playerid, X,Y,Z);

SendClientMessage(playerid,COLOR_BILA,"Auto vytvorené.");

auta[playerid] = CreateVehicle(ID,X,Y,Z,SVK,-1,-1,6000);

auta[playerid] ++;

 

return 1;

}

Link to comment
Share on other sites

  • 0

dcmd_acar(playerid, params[])
{ //---------------------------------------|
TestPrint("dcmd_acar(playerid,params[])");
//---------------------------------------|
if(HracInfo[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_RED,"< ! > Nemáš dostatočný AdminLevel !!");
new ID = strval(params);
if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Použitie: /acar id auta");
if( ID < 400 || ID > 611 ) return SendClientMessage(playerid, COLOR_RED, "Rozmedzie Aut 400 - 611 !");
if(auta[playerid] == 30) return 0;
new Float:X,Float:Y,Float:Z,Float:SVK;
GetPlayerPos(playerid, X,Y,Z);
GetPlayerInterior(playerid, SVK);
SendClientMessage(playerid,COLOR_BILA,"Auto vytvorené.");
auta[playerid] = CreateVehicle(ID,X,Y,Z,SVK,-1,-1,6000);
auta[playerid] ++;

return 1;
}

ZKUS

Link to comment
Share on other sites

  • 0

david prestan fajčiť tú marišku

 

dcmd_acar(playerid, params[])

{ //---------------------------------------|

TestPrint("dcmd_acar(playerid,params[])");

//---------------------------------------|

if(HracInfo[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_RED,"< ! > Nemáš dostatočný AdminLevel !!");

new ID = strval(params);

if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Použitie: /acar id auta");

if( ID < 400 || ID > 611 ) return SendClientMessage(playerid, COLOR_RED, "Rozmedzie Aut 400 - 611 !");

if(auta[playerid] == 30) return 0;

new Float:X,Float:Y,Float:Z,Float:SVK;

GetPlayerPos(playerid, X,Y,Z);

SendClientMessage(playerid,COLOR_BILA,"Auto vytvorené.");

auta[playerid] = CreateVehicle(ID,X,Y,Z,SVK,-1,-1,6000);

auta[playerid] ++;

 

return 1;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...