small help
#1

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?
Reply
#2

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.
Reply
#3

dude i mean to say convert this :-
Код:
if(PInfo[playerid][level] >= 1)
for dini, so that i can use that to make admin commands.
Reply
#4

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
Reply
#5

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.
Reply
#6

Because you haven't even defined that variable. Did you try it as strcmp? Because it would give you the same error.
Reply
#7

Please anyone fix it?
Reply
#8

Any help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)