help with an cmd
#1

return 1;
}

IRP:reportidea(playerid, var[])
{
if(!Logged(playerid)) return NoLogin(playerid);
if(sscanf(var, "s[128]", var)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /reportidea [text]");
if(AntiAdv(playerid, var)) return 1;
if(strlen(var) > 12 return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
new File: file = fopen("ideas.cfg", io_append), string[128];
format(string, sizeof(string), "[%s] %s\r\n", GetName(playerid), var);
fwrite(file, string);
fclose(file);
SendClientMessage(playerid, COLOR_ORANGE, "Your idea report has been saved, scripters will check it once possible.");
format(string, sizeof(string), "{FF0000}[Admin Warn]{FF6347} %s has reported a idea, /ideas to view it. (Inform Roy about it ASAP)", GetName(playerid));
SendAdminMessage(COLOR_DARKRED, 1, string);
return 1;
}

IRP:reportbug(playerid, var[])
{
if(!Logged(playerid)) return NoLogin(playerid);
if(sscanf(var, "s[128]", var)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /reportbug [text]");
if(AntiAdv(playerid, var)) return 1;
if(strlen(var) > 12 return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
new File: file = fopen("bug.cfg", io_append), string[128];
format(string, sizeof(string), "[%s] %s\r\n", GetName(playerid), var);
fwrite(file, string);
fclose(file);
SendClientMessage(playerid, COLOR_ORANGE, "Your bug report has been saved, scripters will check it once possible.");
format(string, sizeof(string), "{FF0000}[Admin Warn]{FF6347} %s has reported a bug, /bugs to view it. (Inform Roy about it ASAP)", GetName(playerid));
SendAdminMessage(COLOR_DARKRED, 1, string);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ERRORS ARE:
_____________________________________
GLRP.pwn(42792) : error 035: argument type mismatch (argument 2)
GLRP.pwn(4280 : error 035: argument type mismatch (argument 2)


2 Errors.
Reply
#2

CAN ANY ONE HELP ME PLEASE?
Reply
#3

Which are line errors
Reply
#4

how can I know?
Reply
#5

At pawno every line has a number
check it on your left side.
Reply
#6

how can I know which line has the error??
Reply
#7

Quote:
Originally Posted by ReScape
Посмотреть сообщение
how can I know which line has the error??
Copy paste the text you recive when compiling.
Reply
#8

C:\Users\Adam Assi\Desktop\GLRP\gamemodes\GLRP.pwn(42917) : error 035: argument type mismatch (argument 2)
C:\Users\Adam Assi\Desktop\GLRP\gamemodes\GLRP.pwn(42933) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#9

is this what you need?
Reply
#10

We need the lines of errors too!
Show us line:42917 , 42933
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)