Error that i dont know - 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: Error that i dont know (
/showthread.php?tid=483690)
Error that i dont know -
TonyNames - 27.12.2013
Can anyone help me with these errors?
Код:
C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\gamemodes\UGRP.pwn(92814) : error 035: argument type mismatch (argument 2)
C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\gamemodes\UGRP.pwn(92815) : error 035: argument type mismatch (argument 2)
C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\gamemodes\UGRP.pwn(92816) : error 035: argument type mismatch (argument 2)
Lines:
Код:
if(sscanf(params, "us[65]", toid, message)) return SendClientMessage(playerid, "/testing");
if(strlen(message) > 65) return SendClientMessage(playerid, "Your question cannot be longer than 65 characters.");
if(!IsPlayerConnected(toid)) return SendClientMessage(playerid, "That player is not connected!");
And these errors
Код:
C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\gamemodes\UGRP.pwn(92827) : error 035: argument type mismatch (argument 2)
C:\Users\JakkenKoppen\Desktop\NEW Bone County Script\gamemodes\UGRP.pwn(92828) : error 035: argument type mismatch (argument 2)
Line:
Код:
if(sscanf(params, "s[80]", message)) return SendClientMessage(playerid, "Testing");
if(strlen(message) > 80) return SendClientMessage(playerid, "Your answer cannot be longer than 80 characters.");
Re: Error that i dont know -
Konstantinos - 27.12.2013
SendClientMessage has 3 parameters: playerid, colour, text[]
You miss the colour.
pawn Код:
// -1 = 0xFFFFFFFF
SendClientMessage(playerid, -1, "/testing");
Do the same for the rest or change it to the colour you like!