SA-MP Forums Archive
why this - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: why this (/showthread.php?tid=197653)



why this - admantis - 09.12.2010

Код:
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


Re: why this - JaTochNietDan - 09.12.2010

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");
}



AW: why this - ukraine1594 - 09.12.2010

remove semi colon


Re: why this - admantis - 09.12.2010

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


Re: why this - willsuckformoney - 09.12.2010

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



Re: why this - admantis - 09.12.2010

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!