09.09.2011, 17:12
OK im obviously a newer scripter or I wouldn't have problems with such an easy little piece of code..I am custom scripting my own TDM server cause everyone loved TDM right? Right. So my problem is this..
These are my errors I continue getting now here is the code its around..This one is suppose to, when you log in, say Welcome login to continue [insert player name]. but it just gives me an odd looking icon when I login.
and this.
On this one when you kill someone you get the money but it doesnt say "You just killed [insert player name] and looted [amount] from them. Ive been trying to fix this for a while but couldnt get it.
Код:
C:\Users\Zack Farmer\Desktop\Lilrebels Folder\Scripting\Scripts\CountrySide.pwn(1006) : warning 202: number of arguments does not match definition C:\Users\Zack Farmer\Desktop\Lilrebels Folder\Scripting\Scripts\CountrySide.pwn(1006) : warning 202: number of arguments does not match definition C:\Users\Zack Farmer\Desktop\Lilrebels Folder\Scripting\Scripts\CountrySide.pwn(1247) : warning 202: number of arguments does not match definition C:\Users\Zack Farmer\Desktop\Lilrebels Folder\Scripting\Scripts\CountrySide.pwn(1247) : warning 202: number of arguments does not match definition
Код:
public OnPlayerConnect(playerid) { new string[128]; format(string,sizeof(string),"Welcome login to continue %s",GetPlayerName(playerid));//This is line 1006 SendClientMessage(playerid,COLOR_GREY,string); SendClientMessage(playerid,COLOR_YELLOW,"Country Side TDM v1.1a"); return 1; }
Код:
public OnPlayerDeath(playerid,killerid,reason) { if(IsPlayerConnected(killerid)) { new killcash = random(1500); new string[128]; GivePlayerMoney(killerid, killcash); GivePlayerMoney(playerid, -killcash); format(string, sizeof(string), "You just killed %s and looted $%d from the them.", GetPlayerName(killerid), killcash);// this is line 1247 } return 1; }