SA-MP Forums Archive
Need some advanced 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: Need some advanced help.. (/showthread.php?tid=373558)



Need some advanced help.. - MatZZPL - 30.08.2012

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?


Re: Need some advanced help.. - BrandyPenguin - 30.08.2012

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?


Re: Need some advanced help.. - Johnson_Brooks - 30.08.2012

-DELETE-


Re: Need some advanced help.. - MatZZPL - 30.08.2012

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