native GetRandomPosInDynamicArea( areaid, &Float:X, &Float:Y, &Float:Z );
// returns X, Y, Z
// Z should be 0.0 in a basic-shaped area (circle, rectangle)
C:\Users\Will\Desktop\samp03x_svr_R2_win32\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128" C:\Users\Will\Desktop\samp03x_svr_R2_win32\pawno\include\streamer.inc(236) : error 017: undefined symbol "MAPICON_LOCAL" C:\Users\Will\Desktop\samp03x_svr_R2_win32\pawno\include\streamer.inc(313) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject") C:\Users\Will\Desktop\samp03x_svr_R2_win32\pawno\include\streamer.inc(336) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject") C:\Users\Will\Desktop\samp03x_svr_R2_win32\pawno\include\streamer.inc(338) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9202) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9203) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9206) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9207) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9210) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9211) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9212) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9213) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9214) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9215) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9216) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9217) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9218) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9219) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9220) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9223) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9224) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9225) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9226) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9227) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9228) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9229) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Users\Will\Desktop\samp03x_svr_R2_win32\gamemodes\VortexRoleplay.pwn(9230) : error 017: undefined symbol "RemoveBuildingForPlayer" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Update the server package, your a_samp.inc is for older version and those functions were not defined yet back then.
|
[16:42:49] Error: Function not registered: 'GetCountryName' [16:42:49] Script[gamemodes/VortexRoleplay.amx]: Run time error 19: "File or function is not found"
The plugin is already updated for 0.3z
https://github.com/samp-incognito/sa...lugin/releases Incognito: you should add the github link to the first post |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sel", cmdtext, true, 10) == 0)
{
SelectObject(playerid);
return 1;
}
return 0;
}
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
SendClientMessage(playerid,-1,"OnPlayerEditObject on GM");
return 1;
}
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
{
printf("Player %d selected object %d", playerid, objectid);
if(type == SELECT_OBJECT_GLOBAL_OBJECT)
{
EditObject(playerid, objectid);
}
else
{
EditPlayerObject(playerid, objectid);
}
SendClientMessage(playerid, 0xFFFFFFFF, "You now are able to edit your object!");
return 1;
}
Well done Incognito. I would like to contribute for a/some official update(s), where I would like to optimize the code at some cases, also I've got some ideas about new functions I would really like to implement, which should benefit map makers and scripters in a new way, only if you give me permission to do it.
|
Well done Incognito. I would like to contribute for a/some official update(s), where I would like to optimize the code at some cases, also I've got some ideas about new functions I would really like to implement, which should benefit map makers and scripters in a new way, only if you give me permission to do it.
|
Right, after I worked over 6 hours, to find a soluition without knowing if I do something wrong, and finally when came up by combine SAMP objects and streamer object ids to get it working with original OnPlayerEditObject, you make this post grr... , but thanks anyways
|
Sure, you can fork the repository and do pull requests if you'd like.
You can always check the commit history to see if I've made any changes. |
Streamer_CallbackHook: Expecting 11 parameter(s), but found 3
A suggestion:
pawn Код:
|
native GetRandomPlayerInDynamicArea( areaid ); // returns the ID of one of the players in areaid
native GetRandomPlayerInAnyDynamicArea( ); // returns the ID of one of the players in any area
native CountPlayersInDynamicArea( areaid ); // returns the number of players in areaid
native CountPlayersInAnyDynamicArea( ); // returns the number of players in any area
native GetPlayersInDynamicArea( areaid, players[ ] ); // fills players[ ] with the IDs of all players which are in areaid
native GetPlayersInAnyDynamicArea( players[ ] ); // fills players[ ] with the IDs of all players which are in any area
native GetPlayerDynamicAreas( playerid, areas[ ] ); // fills areas[ ] with the IDs of all dynamic areas in which is the player
I would really like to know, in which cases exactly are those random functions useful.
|
IsPlayerInDynamicArea( playerid, 1 );
IsPlayerInDynamicArea( playerid, 2 );
IsPlayerInDynamicArea( playerid, -1 );