#1

I am watching some tutorials but I copy al what the male says it gives Errors

C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (13 -- 14) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (13 -- 14) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (17) : error 010: invalid function or declaration

#include <a_samp>
#define GameMode "Tutorial"
#define Spawn_X 200
#define Spawn_Y 200
#define Spawn_z 200
public OnGameModeInit ()
{
SetGameModeText("GameMode");
return 1;
}

public OnPlayerRequestClass(playerid,classid)
(
SetSpawnInfo(playerid, 0, Spawn_X, Spawn_Y, Spawn_z, 0, -1, -1, -1,-1,-1,-1);
GivePlayerMoney(playerid, 1000);
SpawnPlayer(playerid);
return 1;
)
Reply
#2

Can you stop posting new topics? You're spamming the forums.

I've already told you you can't use "(" nor ")" as brackets.
Reply
#3

3rd topic where you use ( ) instead of { }. As I said earlier, check out guides or risk getting a possible warning from forum moderators.

https://sampwiki.blast.hk/wiki/Scripting_Basics
https://sampwiki.blast.hk/wiki/Control_Structures
Reply
#4

Stop spamming topics dude for god sake !
Reply
#5

I need new help I get this error - error 076: syntax error in the expression, or invalid function call how to fix?
Reply
#6

pawn Код:
#include <a_samp>

#define GameMode "Tutorial"
#define Spawn_X 200
#define Spawn_Y 200
#define Spawn_z 200

public OnGameModeInit()
{
    SetGameModeText("GameMode");
    return 1;
}

public OnPlayerRequestClass(playerid,classid)
{
    SetSpawnInfo(playerid, 0, Spawn_X, Spawn_Y, Spawn_z, 0, -1, -1, -1,-1,-1,-1);
    GivePlayerMoney(playerid, 1000);
    SpawnPlayer(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)