Errors in my admin system...
#1

Quote:

LINE 322.error 017: undefined symbol "Reason"
LINE 319.error 035: argument type mismatch (argument 2)

LINE 321&322
format(string, sizeof(string), "Here is %s 's IP: %s",pName, plrIP);
SendClientMessage(playerid, string);


LINE 319.
if(sscanf(params, "uz", targetid, Reason)) return SendClientMessage(playerid,GREY, "USAGE: /getip <ID>");
Reply
#2

pawn Код:
format(string, sizeof(string), "Here is %s 's IP: %s",pName, plrIP);
SendClientMessage(playerid, -1, string); //Suit to your color preference.


new Reason[30]; //Ofcourse you need to declare the 'Reason' variable.
if(sscanf(params, "uz", targetid, Reason)) return SendClientMessage(playerid,GREY, "USAGE: /getip <ID>");
Reply
#3

Try this

pawn Код:
if(sscanf(params, uz, targetid, Reason)) return SendClientMessage(playerid,GREY, "USAGE: /getip <ID>");
Reply
#4

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
Try this

pawn Код:
if(sscanf(params, uz, targetid, Reason)) return SendClientMessage(playerid,GREY, "USAGE: /getip <ID>");
Won't work (It'll give you more errors). Specifiers are supposed to be enclosed on ""
Reply
#5

Thank You Both!
Reply
#6

add new variable like this
Код:
new Reason[128];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)