SA-MP Forums Archive
Settings - 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: Settings (/showthread.php?tid=498908)



Settings - CallumDaBest - 05.03.2014

public OnPlayerSpawn(playerid)
{
SetPlayerSkin(170);
GetPlayerMoney(10000);
SetPlayerScore(2);
return 1;
}

Is that right?
I am trying to set there skin
Give them money
and set there level

And i get these Warnings:

C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(135) : warning 202: number of arguments does not match definition
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium. pwn(137) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.


Re: Settings - Konstantinos - 05.03.2014

https://sampwiki.blast.hk/wiki/SetPlayerSkin
https://sampwiki.blast.hk/wiki/GetPlayerMoney
https://sampwiki.blast.hk/wiki/SetPlayerScore

No, it's not. You forgot playerid to all of them.


Re: Settings - itsCody - 05.03.2014

SetPlayerSkin(playerid, 170);
GetPlayerMoney(playerid, 10000);
SetPlayerScore(playerid, 2);


Re: Settings - XK - 05.03.2014

Make it like this:
pawn Код:
public OnPlayerSpawn(playerid)
{
       SetPlayerSkin(playerid,170);
       GivePlayerMoney(playerid,10000);
       SetPlayerScore(playerid,2);
       return 1;
}



Re: Settings - Maime - 05.03.2014

It's not GetPlayerMoney, it's GivePlayerMoney.