/dropcar - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /dropcar (
/showthread.php?tid=188329)
/dropcar -
martiins2 - 07.11.2010
I don`t work /dropcar
Код:
if(strcmp(cmd,"/dropcar", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
tmp = strtok(cmdtext, idx);
new playa, gname[MAX_PLAYER_NAME];
playa = ReturnUser(tmp);
new carid = GetPlayerVehicleID(playerid);
GetPlayerName(playa,gname,sizeof(gname));
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /dropcar [playerid/PartOfName]");
return 1;
}
if(IsAnOwnableCar(carid))
{
if(strcmp(gname, CarInfo[carid][cOwner], true) == 0)
{
SetTimerEx("RubaVeicolo",300000, false, "i", playerid);
SendClientMessage(playerid,COLOR_WHITE, "* Stai rubando l'auto, devi rimanere dentro per 5 minuti!");
format(gstring,sizeof(gstring),"* %s apre il pannello dell'auto e inizia a smontarlo.",gname);
ProxDetector(30.0, playerid, gstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else return SendClientMessage(playerid,COLOR_WHITE,"* This vehicle doesn't belong to that player!");
}
else return SendClientMessage(playerid,COLOR_WHITE,"* This vehicle is not owned!");
}
else return SendClientMessage(playerid,COLOR_WHITE,"* You are not a the Ombre member!");
return 1;
}
I have errors.
C:\Users\Martins un citi\Desktop\ser 0.3\gamemodes\larp.pwn(46779) : error 017: undefined symbol "gname"
C:\Users\Martins un citi\Desktop\ser 0.3\gamemodes\larp.pwn(46779) : error 017: undefined symbol "gname"
C:\Users\Martins un citi\Desktop\ser 0.3\gamemodes\larp.pwn(46779) : error 029: invalid expression, assumed zero
C:\Users\Martins un citi\Desktop\ser 0.3\gamemodes\larp.pwn(46779) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: /dropcar -
martiins2 - 08.11.2010
Plzz any help me?
Re: /dropcar -
martiins2 - 12.11.2010
Please help mee!
Re: /dropcar -
iJumbo - 12.11.2010
stop bump wtf
line 46779 is?
Re: /dropcar -
Camacorn - 12.11.2010
try replacing "new playa, gname[MAX_PLAYER_NAME];" with: "new playa, gname[128];"
Please post results.
Re: /dropcar -
martiins2 - 12.11.2010
Results:
gamemodes\larp.pwn(47104) : error 017: undefined symbol "gstring"
gamemodes\larp.pwn(47104) : error 017: undefined symbol "gstring"
gamemodes\larp.pwn(47104) : error 029: invalid expression, assumed zero
gamemodes\larp.pwn(47104) : fatal error 107: too many error messages on one line
This line ir 47104 :
format(gstring,sizeof(gstring),"* %s apre il pannello dell'auto e inizia a smontarlo.",gname);
Re: /dropcar -
The_Moddler - 12.11.2010
Just create the string 'gstring'.
Re: /dropcar -
DRIFT_HUNTER - 12.11.2010
Add at top of the CMD
new gstring[128];
or
new gstring[256];
Re: /dropcar -
martiins2 - 12.11.2010
i can change?..... All players can drop the car. Not only Ombre member.
Re: /dropcar -
martiins2 - 13.11.2010
I need /dropcar like SZR server.
http://www.szrgta.com