Error that i dont know
#1

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.");
Reply
#2

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)