why this
#1

Код:
C:\Archivos de programa\Rockstar Games\GTA San Andreas\SA-MP 0.3b\Server 0.3b\gamemodes\fierroharb_retardjob.pwn(1485) : error 055: start of function body without function header
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Fix it plz
this is the cmd

Код:
stock ChangeName(playerid,name);
{
	SetPlayerName(playerid,"name");
}
thanks
Reply
#2

You have made a simple error in your syntax, you need to remove the semi-colon from the end of the function declaration.

pawn Код:
stock ChangeName(playerid,name)
{
    SetPlayerName(playerid,"name");
}
Reply
#3

remove semi colon
Reply
#4

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
You have made a simple error in your syntax, you need to remove the semi-colon from the end of the function declaration.

pawn Код:
stock ChangeName(playerid,name)
{
    SetPlayerName(playerid,"name");
}
oh thanks im so stupid
Reply
#5

pawn Код:
stock ChangeName(playerid,name[])
{
    SetPlayerName(playerid,"name");
}
Added [] so you can do...
pawn Код:
ChangeName(playerid,"Example");
Reply
#6

i knew it wasnt working but it was for practice and i didn't wanted to make a thread so i look like a noob

Anyways you fixed it thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)