Settings
#1

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

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.
Reply
#3

SetPlayerSkin(playerid, 170);
GetPlayerMoney(playerid, 10000);
SetPlayerScore(playerid, 2);
Reply
#4

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

It's not GetPlayerMoney, it's GivePlayerMoney.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)