small help - 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: small help (
/showthread.php?tid=424026)
small help -
Avi Raj - 20.03.2013
Hello,
i have saying system dini and i make commands in strcmp.
Can anyone tell me how can i convert this to dini ?
Код:
if(PInfo[playerid][level] >= 1)
here is the whole cmd :-
Код:
if(strcmp(cmd, "/adminjetpack", true) == 0)
{
if(PInfo[playerid][level] >= 1)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreatePickup(370, 3, X, Y, Z);
SendClientMessage(playerid, COLOR_GREEN, "Jet Pack Created.");
}
return 1;
}
please any help?
Re: small help -
Gamer_007 - 20.03.2013
I cnat understand what u want? You want to convert strcmp to dini.They both differ man.strcmp is a command processor and dini is used for saving.
Re: small help -
Avi Raj - 20.03.2013
dude i mean to say convert this :-
Код:
if(PInfo[playerid][level] >= 1)
for dini, so that i can use that to make admin commands.
Re: small help -
Gamer_007 - 20.03.2013
Quote:
Originally Posted by Thour57
dude i mean to say convert this :-
Код:
if(PInfo[playerid][level] >= 1)
for dini, so that i can use that to make admin commands.
|
I think its already an admin cmd
Re: small help -
Avi Raj - 20.03.2013
dude, when i try it, it gives me errors :-
Код:
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\MINECR~1.PWN(1124) : error 017: undefined symbol "PInfo"
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\MINECR~1.PWN(1124) : warning 215: expression has no effect
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\MINECR~1.PWN(1124) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\MINECR~1.PWN(1124) : error 029: invalid expression, assumed zero
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\MINECR~1.PWN(1124) : 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: small help -
SuperViper - 20.03.2013
Because you haven't even defined that variable. Did you try it as
strcmp? Because it would give you the same error.
Re: small help -
Avi Raj - 20.03.2013
Please anyone fix it?
Re: small help -
Avi Raj - 20.03.2013
Any help?