05.10.2012, 16:15
Hi all, i have a little problem. Im trying to create a plugin so that "pUrzednik" types in "/dajkartemoto" ((means give licence)) and gives the ID number he is near the licence. For him to have the licence he has to have "pKartaMotorowerowa" set to 1 as from registration it sets it to 0 as default. I done this somehow then i got too happy and started playing with it and it all f' up ! Thats the bit of my code:
And now when i type in /dajkartemoto ID it says "Nie ma tego gracza online" someone please help and i looked at tutorials and stuff but cant find anything simular ;/ also looked at wiki
Quote:
CMD:dajkartemoto(playerid, params[]) { new targetid; if(PlayerInfo[playerid][pUrzednik] ==0 ) return SendClientMessage(playerid, 0xFFFFFFF,"Nie masz do tego uprawnien"); if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"/dajkartemoto [ID]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"Nie ma tego gracza online!!"); PlayerInfo[playerid][pKartaMotorowerowa] = 1; // to jest zle sobie daje prawko! return 1; } |