Need some advanced help..
#1

Hi, im trying to let pUrzednik give out licenses by typing /dp PLAYERID i tried so much, i asked for help here i thought i can do it, then pow again, im just stuck this gives me no errors but just dont work, and i think when i restart my server after i use it, it deletes all accounts ;/
Код:
 CMD:dp(playerid, params[])
{
new targetid;
if(sscanf(params,"ui", targetid)) return SendClientMessage(targetid, COLOR_YELLOW, "Dostales KarteMotorowerowa z ograniczeniem do 125cc");
new INI:File = INI_Open(UserPath(targetid));
INI_WriteString(File, "KartaMotorowerowa", "1");
INI_Close(File);
return 1;
}
Can someone edit this for me please?
Reply
#2

Shouldn't
pawn Код:
if(sscanf(params,"ui", targetid)) return SendClientMessage(targetid, COLOR_YELLOW, "Dostales KarteMotorowerowa z ograniczeniem do 125cc");
have to be:
pawn Код:
if(sscanf(params,"u", targetid)) return SendClientMessage(targetid, COLOR_YELLOW, "Dostales KarteMotorowerowa z ograniczeniem do 125cc");
?
You need username? Or how its set up?
Reply
#3

-DELETE-
Reply
#4

thank you will test it in a second!, should i work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)