SA-MP Forums Archive
Help Me Pleassseeee - 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: Help Me Pleassseeee (/showthread.php?tid=596973)



Help Me Pleassseeee - MiyuUchiha - 25.12.2015

Hello
I've Got A Problem Here

Код:
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(85) : error 035: argument type mismatch (argument 1)
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(87) : error 035: argument type mismatch (argument 1)
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(89) : error 033: array must be indexed (variable "targetid")
Код:
new targetid[MAX_PLAYERS];
new AngkatTelepon[MAX_PLAYERS];
Код:
85 if(IsPlayerConnected(targetid))
87 SendClientMessage(targetid, 0xFFFFFFFF, "Ketik /answer untuk mengangkat telepon");
89 AngkatTelepon[targetid] = 1;
Please Help MEEE


Re: Help Me Pleassseeee - IceBilizard - 25.12.2015

You are using any command for this code?


Re: Help Me Pleassseeee - Karan007 - 25.12.2015

PHP код:
if(IsPlayerConnected(targetid[playerid]))
SendClientMessage(targetid[playerid], 0xFFFFFFFF"Ketik /answer untuk mengangkat telepon");
AngkatTelepon[targetid[playerid]] = 1
Tho, i know you are doing something wrong. It can compile it but the code won't work. Use strval(params) or sscanf.


Re: Help Me Pleassseeee - MiyuUchiha - 28.12.2015

Idk how to change that but i know and have sscanf