[HELP]String
#1

Hello, I'm a new scripter, I need your help with string, maybe some of you assuming this is easy, but I will appreciate all help from you all.

This is the warning:
Код:
New.pwn(243) : warning 202: number of arguments does not match definition
This is the line:
Код:
243: format(string,sizeof(string), "%s is on duty as an admin", GetPlayerName(playerid));
This is only a warning, but it will be better if no warning right? Thanks for helping
Reply
#2

show us your string define for that line please?

like that:
pawn Код:
new string[];
and btw you can't ignore this warning
Reply
#3

Read on how to use GetPlayerName: http://www.wiki.sa-mp.com/wiki/GetPlayerName
Reply
#4

My string code is
Код:
string [128]
Reply
#5

pawn Код:
new string[128];
This is correct one.
Reply
#6

Ok, I got it, thanks for helping
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)