SA-MP Forums Archive
error 1 help plz. - 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: error 1 help plz. (/showthread.php?tid=612144)



error 1 help plz. - b0b - 14.07.2016

PHP код:
rp.pwn(173) : error 010invalid function or declaration 
Line:
PHP код:
marker CreatePickup(131811654.0273,-1655.9581,22.5156);//(model,type,z,x,y); 



Re: error 1 help plz. - b0b - 14.07.2016

public OnGameModeInit()
{
marker = (1318, 1, 1654.0273,-1655.9581,22.5156);// model,type,z,x,y
return 1;
}

{
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
mysql_debug(1); // Debugging enabled

SetGameModeText("Simple MySQL System");

print("=========================================== ==========================");
AddVehiclesFromFile();
AddPickupFromFile();
AddLabelsFromFile();
AddMapIconFromFile();
print("=========================================== ==========================\n");
return 0;
}


Re: error 1 help plz. - IceBilizard - 14.07.2016

On top
PHP код:
new marker
then
PHP код:
public OnGameModeInit()
{
marker CreatePickup(131811654.0273,-1655.9581,22.5156, -1);// model,type,z,x,y
return 1;




Re: error 1 help plz. - b0b - 14.07.2016

i have it ..


Re: error 1 help plz. - b0b - 14.07.2016

PHP код:
public OnGameModeInit()
{
marker = (131811654.0273,-1655.9581,22.5156);// model,type,z,x,y
return 1;
}
{
mysql_connect(SQL_HOSTSQL_USERSQL_DBSQL_PASS);
mysql_debug(1); // Debugging enabled
SetGameModeText("Simple MySQL System");
print(
"=========================================== ==========================");
AddVehiclesFromFile();
AddPickupFromFile();
AddLabelsFromFile();
AddMapIconFromFile();
print(
"=========================================== ==========================\n");
return 
0;

This is full code of this


Re: error 1 help plz. - Zorono - 14.07.2016

Код:
public OnGameModeInit()
{
marker = (1318, 1, 1654.0273,-1655.9581,22.5156);// model,type,z,x,y
//==========//
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
mysql_debug(1); // Debugging enabled

SetGameModeText("Simple MySQL System");

print("=========================================== ==========================");
AddVehiclesFromFile();
AddPickupFromFile();
AddLabelsFromFile();
AddMapIconFromFile();
print("=========================================== ==========================\n");
return 1;
}
Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
On top
PHP код:
new marker
then
PHP код:
public OnGameModeInit()
{
marker CreatePickup(131811654.0273,-1655.9581,22.5156, -1);// model,type,z,x,y
return 1;

no need to redefine new marker;, he already defined that -_-


Re: error 1 help plz. - TayFunCZE - 14.07.2016

Change it to this:

PHP код:
marker CreatePickup(131811654.0273,-1655.9581,22.5156, -1);// model,type,z,x,y 
You forgot this "-1"